package hflyeer.gitee.com.entity;

import java.util.Date;

public class Employee {
    private int id;
    private String account;
    private String password;
    private String status;
    private int departmentId;
    private String name;
    private String sex;
    private String idCart;
    private Date joinTime;
    private Date outTime;
    private Date birth;
    private String extension;

    private Department department;

    public Employee() {
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public int getDepartmentId() {
        return departmentId;
    }

    public void setDepartmentId(int departmentId) {
        this.departmentId = departmentId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getIdCart() {
        return idCart;
    }

    public void setIdCart(String idCart) {
        this.idCart = idCart;
    }

    public void setJoinTime(Date joinTime) {
        this.joinTime = joinTime;
    }

    public void setOutTime(Date outTime) {
        this.outTime = outTime;
    }


    public Date getBirth() {
        return birth;
    }

    public void setBirth(Date birth) {
        this.birth = birth;
    }

    public String getExtension() {
        return extension;
    }

    public void setExtension(String extension) {
        this.extension = extension;
    }

    public Date getJoinTime() {
        return joinTime;
    }

    public Date getOutTime() {
        return outTime;
    }

    public Department getDepartment() {
        return department;
    }

    public void setDepartment(Department department) {
        this.department = department;
    }

    @Override
    public String toString() {
        return "Employee{" +
                "id=" + id +
                ", account='" + account + '\'' +
                ", password='" + password + '\'' +
                ", status='" + status + '\'' +
                ", departmentId=" + departmentId +
                ", name='" + name + '\'' +
                ", sex='" + sex + '\'' +
                ", idCart='" + idCart + '\'' +
                ", joinTime=" + joinTime +
                ", outTime=" + outTime +
                ", birth=" + birth +
                ", extension='" + extension + '\'' +
                ", department=" + department +
                '}';
    }
}
